/* 基础样式 */
:root {
    --bg-color: #0a0a0a;
    --bg-color-alt: #121212;
    --text-color: #e0e0e0;
    --accent-color: #00f7ff;
    /* 霓虹蓝 */
    --accent-color-alt: #00ff41;
    /* 矩阵绿 */
    --grid-color: rgba(0, 247, 255, 0.1);
    --terminal-header: #1a1a1a;
    --terminal-border: #333;
    --card-bg: rgba(18, 18, 18, 0.7);
    --card-border: rgba(0, 247, 255, 0.3);
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-alt);
}

/* 背景效果 */
canvas#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

/* 主容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--terminal-border);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
    backdrop-filter: blur(5px);
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4rem);
    /* 减去上下margin */
}

/* 终端头部 */
.terminal-header {
    background-color: var(--terminal-header);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-btn.close {
    background-color: #ff5f56;
}

.terminal-btn.minimize {
    background-color: #ffbd2e;
}

.terminal-btn.maximize {
    background-color: #27c93f;
}

.terminal-title {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.terminal-info {
    font-size: 0.8rem;
    display: flex;
    gap: 15px;
}

.connection {
    color: var(--accent-color-alt);
}

/* 导航菜单 */
.main-nav {
    background-color: var(--bg-color-alt);
    border-bottom: 1px solid var(--terminal-border);
}

.main-nav ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
}

.main-nav li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid var(--terminal-border);
    white-space: nowrap;
}

.main-nav li:hover {
    background-color: rgba(0, 247, 255, 0.1);
    color: var(--accent-color);
}

.main-nav li.active {
    background-color: rgba(0, 247, 255, 0.15);
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* 内容区域 */
.content {
    padding: 1.5rem;
    flex: 1;
    /* 让内容区域占据剩余空间 */
    overflow-y: auto;
    /* 允许内容区域滚动 */
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
    height: auto;
    min-height: auto;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
}

/* 确保配置页面正确显示 */
#config.page.active {
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
}

/* 强制配置页面内容显示在顶部 */
#config.page.active * {
    position: relative;
    vertical-align: top;
}

#config.page.active .section-header,
/* 只针对配置页面的修复 */
#config.page.active {
    display: block !important;
    position: relative !important;
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#config.page.active .section-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 1.5rem !important;
}

#config.page.active .config-container {
    position: static !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
}

/* 配置页面特殊样式 */
#config {
    display: block !important;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

#config .section-header {
    margin-bottom: 1.5rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

#config .config-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
    display: grid !important;
}

/* 主页样式 */
.terminal-welcome {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--bg-color-alt);
    border: 1px solid var(--terminal-border);
    border-radius: 4px;
}

.ascii-art {
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--accent-color);
    margin-bottom: 1rem;
    overflow-x: auto;
    white-space: pre;
    text-align: center;
    width: 100%;
}

.typing-text p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.command-prompt {
    margin-top: 1rem;
}

/* 统计卡片 */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-box:hover {
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
    transform: translateY(-2px);
}

.stat-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-progress {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* 活动日志 */
.recent-activity {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1rem;
}

.recent-activity h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.activity-log {
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.log-time {
    color: #888;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.log-type {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-right: 1rem;
    font-size: 0.7rem;
    font-weight: bold;
}

.log-type.commit {
    background-color: rgba(0, 247, 255, 0.2);
    color: var(--accent-color);
}

.log-type.deploy {
    background-color: rgba(0, 255, 65, 0.2);
    color: var(--accent-color-alt);
}

.log-type.learn {
    background-color: rgba(255, 0, 255, 0.2);
    color: #ff00ff;
}

/* 项目页面样式 */
.section-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background-color: var(--bg-color-alt);
    border: 1px solid var(--terminal-border);
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag:hover,
.tag.active {
    background-color: rgba(0, 247, 255, 0.15);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    height: 220px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-front {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    align-items: center;
    justify-content: center;
}

.card-back {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transform: rotateY(180deg);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.mini-tag {
    padding: 0.2rem 0.5rem;
    background-color: rgba(0, 247, 255, 0.1);
    border-radius: 3px;
    font-size: 0.7rem;
}

.card-back p {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1rem;
}

.tech {
    padding: 0.2rem 0.5rem;
    background-color: rgba(0, 247, 255, 0.1);
    border-radius: 3px;
    font-size: 0.7rem;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent-color-alt);
}

/* 简历页面样式 */
/* 技能掌握度状态标签 */
.skill-level {
    margin-top: 0.5rem;
    text-align: right;
}

.skill-stars {
    display: flex;
    justify-content: flex-end;
    gap: 0.2rem;
}

.skill-stars i {
    font-size: 0.9rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    animation: starTwinkle 2s ease-in-out infinite;
}

.skill-stars i.fas {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.skill-stars i.far {
    color: rgba(224, 224, 224, 0.3);
    animation: none;
}

.skill-stars i:nth-child(1) {
    animation-delay: 0s;
}

.skill-stars i:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-stars i:nth-child(3) {
    animation-delay: 0.4s;
}

.skill-stars i:nth-child(4) {
    animation-delay: 0.6s;
}

.skill-stars i:nth-child(5) {
    animation-delay: 0.8s;
}

/* 星星闪烁动画 */
@keyframes starTwinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* 技能掌握度图例 */
.skill-level-legend {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-stars {
    display: flex;
    gap: 0.1rem;
}

.legend-stars i {
    font-size: 0.7rem;
    color: var(--accent-color);
}

.legend-stars i.fas {
    color: var(--accent-color);
    text-shadow: 0 0 3px var(--accent-color);
}

.legend-stars i.far {
    color: rgba(224, 224, 224, 0.3);
}

.legend-text {
    font-size: 0.8rem;
    color: var(--text-color);
}

/* 技能掌握度进度条颜色 */
.skill-bar-item:nth-child(1) .skill-bar-fill,
.skill-bar-item:nth-child(2) .skill-bar-fill,
.skill-bar-item:nth-child(5) .skill-bar-fill {
    background-color: #00ff41;
    /* 精通 - 矩阵绿 */
}

.skill-bar-item:nth-child(3) .skill-bar-fill,
.skill-bar-item:nth-child(4) .skill-bar-fill {
    background-color: #00f7ff;
    /* 熟悉 - 霓虹蓝 */
}

/* 了解级别的样式（如果有的话） */
.skill-bar-item .skill-bar-fill[style*="width: 60%"],
.skill-bar-item .skill-bar-fill[style*="width: 5"],
.skill-bar-item .skill-bar-fill[style*="width: 4"],
.skill-bar-item .skill-bar-fill[style*="width: 3"] {
    background-color: #ff00ff;
    /* 了解 - 紫色 */
}

.timeline-container {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background-color: var(--terminal-border);
}

.timeline-node {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 150px;
}

.timeline-node::before {
    content: '';
    position: absolute;
    left: 116px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.timeline-content h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

.timeline-details {
    font-size: 0.9rem;
}

.timeline-details p {
    margin-bottom: 0.5rem;
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skills-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-radar {
    display: flex;
    flex-direction: column;
}

.skills-radar h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.radar-chart-container {
    height: 300px;
    max-width: 400px;
    margin: 0 auto;
}

.skill-bars {
    display: flex;
    flex-direction: column;
}

.skill-bars h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* 技能掌握度进度条样式 */
.skill-bars-container {
    margin-top: 1rem;
}

.skill-bar-item {
    margin-bottom: 1.5rem;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-size: 0.9rem;
    color: var(--text-color);
}

.skill-percentage {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: bold;
}

.skill-bar-bg {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.skill-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* 学习页面样式 */
.learning-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.notes-section,
.skill-tree {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1rem;
}

.notes-section h3,
.skill-tree h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.notes-list {
    max-height: 500px;
    overflow-y: auto;
}

.note-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--terminal-border);
    padding-bottom: 1rem;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.note-header h4 {
    color: var(--accent-color);
}

.note-date {
    font-size: 0.8rem;
    color: #888;
}

.markdown-content {
    font-size: 0.9rem;
}

.markdown-content h5 {
    margin: 1rem 0 0.5rem;
    color: #ddd;
}

.markdown-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 3px;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.markdown-content code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.tree-container {
    height: 500px;
    position: relative;
}

/* 配置页面样式 */
.config-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: start;
    justify-items: stretch;
    width: 100%;
}

/* 系统状态面板样式 */
.system-status {
    padding: 0.5rem 0;
}

.system-status .status-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.system-status .status-item i {
    margin-right: 0.5rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.system-status .highlight {
    color: var(--accent-color);
    margin-left: 0.5rem;
    font-weight: bold;
}

.system-status .status-progress {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.system-status .progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

.config-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1rem;
    margin: 0;
    height: fit-content;
    vertical-align: top;
    position: relative;
    top: 0;
    transform: none;
}

.config-panel h3 {
    margin-bottom: 1rem;
    margin-top: 0;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.config-group {
    margin-bottom: 1.5rem;
}

.config-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.color-options {
    display: flex;
    gap: 1rem;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-color);
}

.slider {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    border-radius: 2px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--accent-color);
    cursor: pointer;
}

.range-value {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.layout-editor {
    border: 1px dashed var(--terminal-border);
    padding: 1rem;
    min-height: 200px;
}

.layout-item {
    padding: 0.5rem;
    background-color: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--terminal-border);
    margin-bottom: 0.5rem;
    cursor: move;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.layout-item:hover {
    background-color: rgba(0, 247, 255, 0.2);
    border-color: var(--accent-color);
}

.layout-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.layout-item i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.layout-editor {
    border: 1px dashed var(--terminal-border);
    padding: 1rem;
    min-height: 200px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.layout-editor.drag-over {
    border-color: var(--accent-color);
    background-color: rgba(0, 247, 255, 0.05);
}

.json-editor {
    margin-bottom: 1rem;
}

.json-editor textarea {
    width: 100%;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--terminal-border);
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.5rem;
    resize: vertical;
}

.json-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.btn:hover {
    background-color: rgba(0, 247, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(0, 247, 255, 0.5);
}

/* 终端底部 */
.terminal-footer {
    background-color: var(--terminal-header);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--terminal-border);
    font-size: 0.8rem;
    margin-top: auto;
    /* 确保底部状态栏位于容器底部 */
}

.status {
    display: flex;
    gap: 15px;
}

.status-item i {
    color: var(--accent-color);
    margin-right: 0.3rem;
}

.version {
    color: var(--accent-color);
}

/* 特效样式 */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 247, 255, 0.5);
    box-shadow: 0 0 10px var(--accent-color);
    z-index: 9;
    pointer-events: none;
    opacity: 0.7;
    animation: scanLine 8s linear infinite;
}

#hologram-ripple {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

#cursor-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scanLine {
    0% {
        top: -10px;
    }

    100% {
        top: 100%;
    }
}

.blink {
    animation: blink 1s step-end infinite;
}

.blink-slow {
    animation: blink 2s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        margin: 1rem auto;
        min-height: calc(100vh - 2rem);
    }

    .content {
        padding: 1rem;
    }

    .quick-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 98%;
        margin: 0.5rem auto;
        min-height: calc(100vh - 1rem);
        border-radius: 0;
    }

    .content {
        padding: 0.8rem;
    }

    /* 导航菜单优化 */
    .main-nav ul {
        justify-content: space-around;
        padding: 0 0.5rem;
    }

    .main-nav li {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        text-align: center;
        min-width: 0;
        flex: 1;
    }

    .main-nav li i {
        display: block;
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }

    /* 统计卡片 */
    .quick-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .stat-box {
        padding: 0.8rem;
    }

    .stat-title {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    /* 项目网格 */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        height: 180px;
    }

    .card-front,
    .card-back {
        padding: 1rem;
    }

    /* 学习页面 */
    .learning-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* 技能容器 */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .radar-chart-container {
        height: 250px;
        max-width: 100%;
    }

    /* 时间线 */
    .timeline-container::before {
        left: 60px;
    }

    .timeline-node {
        padding-left: 80px;
    }

    .timeline-node::before {
        left: 56px;
    }

    .timeline-date {
        width: 50px;
        font-size: 0.75rem;
    }

    .timeline-content {
        padding: 0.8rem;
    }

    /* 配置页面 */
    .config-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .config-panel {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .container {
        width: 100%;
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .content {
        padding: 0.5rem;
    }

    /* 终端头部 */
    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .terminal-title {
        font-size: 0.8rem;
    }

    .terminal-info {
        font-size: 0.7rem;
        gap: 10px;
        margin-top: 0;
    }

    /* 导航菜单 */
    .main-nav li {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
        border-right: none;
        border-bottom: 1px solid var(--terminal-border);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav li i {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }

    /* 欢迎区域 */
    .terminal-welcome {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .ascii-art {
        font-size: 0.5rem;
        line-height: 1.1;
    }

    .typing-text p {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }

    /* 统计卡片 */
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .stat-box {
        padding: 0.6rem;
    }

    .stat-title {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    /* 活动日志 */
    .recent-activity {
        padding: 0.8rem;
    }

    .recent-activity h2 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .activity-log {
        max-height: 150px;
    }

    .log-entry {
        padding: 0.3rem 0;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .log-time {
        font-size: 0.7rem;
        margin-right: 0.5rem;
        width: 100%;
        margin-bottom: 0.2rem;
    }

    .log-type {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        margin-right: 0.5rem;
    }

    /* 项目页面 */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    .filter-tags {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    .project-card {
        height: 160px;
    }

    .card-front,
    .card-back {
        padding: 0.8rem;
    }

    .project-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .project-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .card-back p {
        font-size: 0.8rem;
        margin: 0.5rem 0;
    }

    .tech-stack,
    .project-tags {
        gap: 0.3rem;
    }

    .tech,
    .mini-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }

    /* 简历页面 */
    .timeline-container::before {
        left: 30px;
    }

    .timeline-node {
        padding-left: 50px;
    }

    .timeline-node::before {
        left: 26px;
    }

    .timeline-date {
        width: 40px;
        font-size: 0.7rem;
        text-align: left;
        top: -0.2rem;
    }

    .timeline-content h3 {
        font-size: 0.9rem;
    }

    .timeline-content h4 {
        font-size: 0.8rem;
    }

    .timeline-details {
        font-size: 0.8rem;
    }

    /* 技能掌握度 */
    .skill-level-legend {
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .legend-text {
        font-size: 0.7rem;
    }

    .legend-stars i {
        font-size: 0.6rem;
    }

    .skill-bar-header {
        margin-bottom: 0.3rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .skill-percentage {
        font-size: 0.7rem;
    }

    .skill-bar-bg {
        height: 6px;
    }

    .skill-stars i {
        font-size: 0.8rem;
    }

    /* 雷达图 */
    .radar-chart-container {
        height: 200px;
    }

    /* 学习页面 */
    .notes-section,
    .skill-tree {
        padding: 0.8rem;
    }

    .notes-section h3,
    .skill-tree h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .note-item {
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .note-header h4 {
        font-size: 0.9rem;
    }

    .note-date {
        font-size: 0.7rem;
    }

    .markdown-content {
        font-size: 0.8rem;
    }

    /* 配置页面 */
    .config-panel h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .config-group {
        margin-bottom: 1rem;
    }

    .config-group label {
        font-size: 0.8rem;
    }

    .json-editor textarea {
        height: 120px;
        font-size: 0.7rem;
    }

    /* 终端底部 */
    .terminal-footer {
        padding: 0.5rem;
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .status {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .status-item {
        font-size: 0.65rem;
    }

    .copyright {
        font-size: 0.65rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
    .main-nav li {
        padding: 0.4rem 0.2rem;
        font-size: 0.6rem;
    }

    .main-nav li i {
        font-size: 0.8rem;
    }

    .ascii-art {
        font-size: 0.4rem;
    }

    .typing-text p {
        font-size: 0.7rem;
    }

    .project-card {
        height: 140px;
    }

    .radar-chart-container {
        height: 180px;
    }
}